﻿namespace Manage.TraceAbility.Common
{
    //public interface IDataBaseConnection
    //{
    //    void Connect();
    //}
    //public class DataBaseConnection : IDataBaseConnection
    //{
    //    public void Connect()
    //    {
    //        Console.WriteLine("Connected to the database");
    //    }
    //}
    public interface IServiceA
    {
        void Execute();
    }
    public class ServiceA : IServiceA
    {
        public void Execute()
        {
            Console.WriteLine("ServiceA is running!");
        }
    }
    public class Consumer
    {
        private readonly IServiceA service;

        public Consumer(IServiceA service)
        {
            this.service = service;
        }
        public void Run()
        {
            service.Execute();
        }
    }
}
